﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;

namespace DAO
{
    public class Q_DAOLoaiBenhAn
    {
        /// <summary>
        /// Lấy danh sách loại bệnh án
        /// </summary>
        /// <returns></returns>
        public List<LoaiBenhAn> DanhSachLoaiBenhAn()
        {
            List<LoaiBenhAn> ds = null;
            using(db_nhakhoachauauDataContext db = new db_nhakhoachauauDataContext())
            {
                var query = from i in db.LoaiBenhAns 
                            select i;
                ds = query.ToList<LoaiBenhAn>();
            }
            return ds;
        }
    }
}
